<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03 选择器-伪元素</title>
    <style>
        body{
            margin: 0;
            padding: 0;
            font-family: '微软雅黑';
            background-color: #f7f7f7;
        }
        ul{
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .wrapper{
            width: 1024px;
            margin: 0 auto;
        }
        .wrapper > section{
            min-height: 300px;
            margin-bottom: 30px;
            box-shadow: 1px 1px 4px #DDD;
            background-color: #fff;
        }
        .wrapper > header{
            text-align: center;
            line-height: 1;
            padding: 20px;
            margin-bottom: 10px;
            font-size: 30px;
        }
        .wrapper section > header{
            line-height: 1;
            padding: 10px;
            font-size: 22px;
            color: #333;
            background-color: #EEE;
        }
        .wrapper .wrap-box{
            padding: 20px;
        }

        section:nth-child(3) p::selection {
            background-color: red;
            color: #fff;
        }

        section:nth-child(4) input::placeholder {
            color: burlywood;
        }


    </style>
</head>
<body>
    <div class="wrapper">
        <header>CSS3-伪元素选择器</header>
        <section>
            <header>简介</header>
            <div class="wrap-box">

            </div>
        </section>
        <section>
            <header>E::selection</header>
            <div class="wrap-box">
                <p>一大段话一大段话一大段话一大段话一大段话一大段话一大段话一大段话一大段话一大段话一大段话一大段话</p>
            </div>
        </section>
        <section>
            <header>E::placeholder</header>
            <div class="wrap-box">
                <input type="text" placeholder="我是一个占位符">
            </div>
        </section>
    </div>
</body>
</html>